package hello;

import java.util.Scanner;


public class Test3 {
	public static void main(String[] args) {
		/*int i, s = 0;//奇数和
		for (i = 1; i <= 100; i += 2) {
			s += i;
		}
		System.out.println(s);*/

		/*偶数和
		 * int i=0,s=0; 
		 * while(i<=100)
		 * { s+=i;
		 *  i+=2; 
		 *  } 
		 *  System.out.println(s);
		 */
		/*
		 *  int i,s=0;
		 *  for(i=1;i<=100;s+=i,i++); 
		 *  System.out.println(s);
		 */
		/*
		Scanner in=new Scanner(System.in);
		System.out.println("请输入一个年份：");
		int year=in.nextInt();
		if(year%4==0&&year%100!=0||year%400==0){
			System.out.println("是瑞年！");*/
		
		/*Scanner sc=new Scanner(System.in);
		System.out.println("请输入姓别：");
		String sex=sc.nextLine();
		switch(sex){
		case "男":System.out.println("男");break;
		case "女":System.out.println("女");break;
		default:System.out.println("不男不女");
		}
		System.out.println("程序结束！");*/
		/*
		Scanner sc = new Scanner(System.in);
		System.out.println("请输入性别：");
		String sex = sc.nextLine();
		if (sex.equals("男"))
			System.out.println("男");
		else if (sex.equals("女"))
			System.out.println("女");
		else
			System.out.println("不男不女！");*/
		
/*
		int a = 1, b = 1, c;
		do {
			c = a + b;
			a = b;
			b = c;
		} while (c < 10);
		System.out.println(c);*/

		/*
		Scanner in=new Scanner(System.in);
		System.out.println("请输入你的成绩：");
		int s=in.nextInt();
		switch(s/10){
		case 10: break;
		case 9:System.out.println("grade="+"优秀");break;
		case 8:System.out.println("grade"+"良好");break;
		case 7:System.out.println("grade"+"及格");break;
		case 6:System.out.println("grade"+"及格");break;
		default:System.out.println("grade"+"不及格");break;
		}*/
		
		
		
		/*
		 * 
		 * 
		int a=1,b=1,c,i;
		System.out.print(a+" ");
		System.out.print(b+" ");
		for(i=1;i<=18;i++){
			c=a+b;
			System.out.print(c+" ");
			a=b;
			b=c;
		}*/

		/*int y;
		for (y = 1900; y <= 2020; y++) {
			if (y % 4 == 0 && y % 100 != 0 || y % 400 == 0)
				System.out.println(y);*/
		
		
		}
		}
	

